package com.zeldu.teacher.mapper;

import com.zeldu.teacher.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface TeacherInfoMapper {

    @Select("select * from teacher where id=#{id}")
    Teacher getSelfInfo(Long id);

    @Update("update teacher set phone=#{phone},real_name=#{realName},email_addr=#{emailAddr},head_url=#{headUrl},sex=#{sex} where id=#{id}")
    int mdfSelfInfo(Teacher teacher);
}
